package com.luchao.back.common.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

@ApiModel("分页对象")
public class PageResult<T> {

    @ApiModelProperty("总记录数")
    private Long count;

    @ApiModelProperty("当前页")
    private Integer pageNum;

    @ApiModelProperty("总页数")
    private Long page;

    @ApiModelProperty("结果集列表")
    private List<T> result;

    public PageResult() {
    }

    public Long getCount() {
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }

    public Long getPage() {
        return page;
    }

    public void setPage(Long page) {
        this.page = page;
    }

    public List<T> getResult() {
        return result;
    }

    public void setResult(List<T> result) {
        this.result = result;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }
}
